generatestaticparams not working